﻿<Page
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	x:Class="WpfClient.Default"
	x:Name="Page"
	WindowTitle="Welcome To .NET PetShop"
	FlowDirection="LeftToRight">

	<Page.Resources>
		<Style x:Key="SearchButton" TargetType="{x:Type Button}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type Button}">
                        <Image Margin="{TemplateBinding Padding}" Source="Comm_Images\button-search.gif" Stretch="None"/>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
		<Style x:Key="LinkButton" TargetType="{x:Type Button}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type Button}">
                        <TextBlock HorizontalAlignment="Left" Margin="{TemplateBinding Padding}" OverridesDefaultStyle="True" Text="{TemplateBinding Content}" TextTrimming="CharacterEllipsis" TextWrapping="NoWrap"/>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
		</Style>
	</Page.Resources>

	<Grid x:Name="LayoutRoot" Background="#FFFFFFFF">
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto"/>
			<RowDefinition Height="Auto"/>
		</Grid.RowDefinitions>
		<Image HorizontalAlignment="Stretch" VerticalAlignment="Top" Source="Comm_Images\home-bg-body.gif" Stretch="Fill" Grid.RowSpan="2"/>
		<Grid x:Name="pnlHeader" VerticalAlignment="Top" Width="780">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="Auto"/>
				<ColumnDefinition Width="Auto"/>
				<ColumnDefinition Width="50"/>
				<ColumnDefinition Width="50"/>
				<ColumnDefinition Width="66"/>
			</Grid.ColumnDefinitions>
			<Image HorizontalAlignment="Left" VerticalAlignment="Stretch" Source="Comm_Images\Logo-home.gif" Stretch="None"/>
			<Image HorizontalAlignment="Stretch" VerticalAlignment="Top" Grid.Column="1" Grid.ColumnSpan="3" Source="Comm_Images\bg-search.gif" Stretch="Fill"/>
			<TextBox FontSize="10" Foreground="#FF404040" HorizontalAlignment="Left" Margin="0,20,0,0" x:Name="txtSearch" VerticalAlignment="Top" Width="130" Grid.Column="1" Text="TextBox" TextWrapping="Wrap"/>
			<Button Padding="5,3,3,1" HorizontalAlignment="Left" Margin="0,20,0,0" x:Name="btnSearch" Style="{DynamicResource SearchButton}" ToolTip="Search" VerticalAlignment="Top" Content="Button" Grid.Column="2"/>
			<Button HorizontalAlignment="Left" Margin="0,20,0,0" x:Name="lgnStatus" Style="{DynamicResource LinkButton}" VerticalAlignment="Top" Content="SIGN IN" Grid.Column="3"/>
		</Grid>
		<Grid x:Name="pnlBody" Width="780" Grid.Row="1" VerticalAlignment="Top">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="112"/>
				<ColumnDefinition Width="Auto"/>
				<ColumnDefinition Width="Auto"/>
			</Grid.ColumnDefinitions>
			<Grid.RowDefinitions>
				<RowDefinition Height="Auto"/>
				<RowDefinition/>
				<RowDefinition/>
			</Grid.RowDefinitions>
			<Border VerticalAlignment="Stretch" Height="32" Grid.Column="1" Background="#FFABAF94" BorderBrush="#FFFFFFFF" BorderThickness="5,5,5,0">
				<TextBlock Text="WELCOME TO THE WORLD OF ANIMALS" TextWrapping="Wrap" Margin="20,0,0,0" VerticalAlignment="Center" FontFamily="Arial" FontSize="14" FontWeight="Bold" Foreground="#FFFFFFFF"/>
			</Border>
			<Image ToolTip="Sea Horse" Width="112" Height="290" Grid.Row="1" Source="Comm_Images\seahorse.gif"/>
			<Border HorizontalAlignment="Left" VerticalAlignment="Stretch" Width="446" Grid.Column="1" Grid.ColumnSpan="1" Grid.Row="1" Background="#FFE3E5DC" BorderBrush="#FFFFFFFF" BorderThickness="5,0,5,0"/>
			<Image HorizontalAlignment="Left" Margin="-60,0,0,0" VerticalAlignment="Top" Grid.Column="3" Grid.Row="1" Grid.RowSpan="2" Source="Comm_Images\home-fish.gif" Stretch="None"/>
			<Border Margin="5,0,5,0" x:Name="pnlFooter" VerticalAlignment="Center" Height="16" Grid.Column="1" Grid.Row="2" Background="#FF122E87" Padding="18,0,0,0">
				<TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" FontFamily="Arial" FontSize="10" Foreground="#FFFFFFFF" TextWrapping="Wrap"><Run Language="pl-pl" Text="VERSION 5.0 - POWERED BY .NET 3.5"/></TextBlock>
			</Border>
		</Grid>
	</Grid>
</Page>